<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of LoginAction
 *
 * @author Alen
 */
class LoginAction extends PyramidAction {
    //put your code here
    public function index(){
        $this->display();
    }
    public function loginout(){
        $biz=new SoBizUser();
        $biz->login_out();
        redirect('账户已退出登录!','?m=Login');
    }
    public function login(){
        $uid=request_string('login_info');
        $pwd=request_string('password');
        $biz=new SoBizUser();
        $msg=$biz->login_user($uid,$pwd);
        if($msg=='SUCCESS'){
            redirect('登录成功','?m=UC_Index.html');
        }else{
            redirect($msg);
        }
    }
}

?>
